package com.zenith.zongheng.demo.constant;

import com.zenith.zongheng.core.result.ResultConstant;

/**
 * <p>
 * 假条信息错误类
 * </p>
 *
 * @version: V1.0
 * @author: wuyue
 * @className: SystemResultConstant
 * @packageName: com.zenith.zongheng.leave.constant;
 * @description: 用户中心返回错误码 7000-8000
 * @since: 2022/1/1
 **/
public enum LeaveResultConstant implements ResultConstant {
    /*
     * 7000-8000
     * */
    LEAVE_ID_EXIST_ERR(7000, "请假ID已经存在"),
    LEAVE_ID_NOT_EXIST_ERR(7001, "请假ID不存在"),
    UNIT_USER_ID_NULL(7002, "用户id传递出错"),
    FILE_DIR_CREATE_ERR(7003,"文件夹创建失败"),
    FILE_UPLOAD_ERR(7004,"文件上传失败"),
    FILE_IS_EMPTY_ERR(7005,"文件为空,请选择一个文件"),
    FILE_NOT_FOUND_ERR(7006,"文件没找到");

    private int code;
    private String message;

    LeaveResultConstant(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }
}
